import { request } from '@/utils/request';
// import type { BaseResponse } from '@/utils/request';
import Api from '@/core/permission/modules/sup/task-management';

/**
 * @description 获取任务管理列表
 * @param {API.GetTaskRequest} data
 * @returns
 */
export function getTaskList(data: API.GetTaskRequest) {
  return request({
    url: Api.list,
    method: 'post',
    data,
  });
}

/**
 * @description 删除任务信息
 */
export function deleteTask(id: string) {
  return request({
    url: Api.deleteTask + `/${id}`,
    method: 'delete',
  });
}

/**
 * @description 任务信息详情
 * @returns
 */
export function taskxfInfo(id: any) {
  return request({
    url: Api.info + `/${id}`,
    method: 'get',
  });
}
